#include "Chronometer.h"

Chronometer::Chronometer() : _timer(0) {}
Chronometer::~Chronometer() {}

bool Chronometer::isDelayElapsed()
{
	return _clock.getElapsedTime().asMilliseconds()>_timer;
}

void Chronometer::setTimer(int mstime)
{
	_timer=mstime;
	_clock.restart();
}